Skip to content

[gem-team] v1.148.0 Quality gates rework - #6558

Open
mubaidr wants to merge 1 commit into
github:mainfrom
mubaidr:v1.148.0
Open

mubaidr wants to merge 1 commit into
github:mainfrom
mubaidr:v1.148.0

Conversation

@mubaidr

@mubaidr mubaidr commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

  • Unified workflow structure — standardized phase-based workflow across all 13 agents with clearer boundaries, delegation rules, and quality gates
  • Simplified agent definitions — removed redundant directives, consolidated Phase 0–4 workflows into consistent format with explicit routing logic
  • Improved handoff contracts — stricter payload ordering, caching rules, and context injection for task delegation
  • Enhanced quality gates — added post-wave and final plan-wide review gates with configurable review_mode (standard/high/critic) tied to risk signals
  • Clarified result routing — explicit mappings for needs_retry, needs_revision, needs_replan, blocked, flaky, platform_specific, test_bug outcomes
  • Refined planner output — strict acceptance criteria format ("Verify X happens when Y"), decision/assumption tracking, and anti-pattern guidance

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

…ugin to v1.148.0

- **Unified workflow structure** — standardized phase-based workflow across all 13 agents with clearer boundaries, delegation rules, and quality gates
- **Simplified agent definitions** — removed redundant directives, consolidated Phase 0–4 workflows into consistent format with explicit routing logic
- **Improved handoff contracts** — stricter payload ordering, caching rules, and context injection for task delegation
- **Enhanced quality gates** — added post-wave and final plan-wide review gates with configurable `review_mode` (standard/high/critic) tied to risk signals
- **Clarified result routing** — explicit mappings for `needs_retry`, `needs_revision`, `needs_replan`, `blocked`, `flaky`, `platform_specific`, `test_bug` outcomes
- **Refined planner output** — strict acceptance criteria format ("Verify X happens when Y"), decision/assumption tracking, and anti-pattern guidance
- **Updated plugin version** — gem-team plugin bumped to v1.148.0 with synchronized agent definitions
@mubaidr
mubaidr requested review from a team as code owners November 21, 2026 10:20
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 10:20
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:medium — New or substantially changed resource without privileged execution
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.

Why this tier
  • Changes 793 lines (low-risk limit is 40)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Plugin and extension validation ✅ Passed Passed · logs
Plugin structure ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs
Canvas/plugin smoke test ✅ Passed Passed · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s)
  • No staffed reviewer pool owns these files yet; any reviewer with write access counts as the domain reviewer.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for d20bccf · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 14 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

⚠️ Warnings or advisories found

Scope Checked
Skills 0
Agents 12
Total 12
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 1

Summary

Level Finding
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
Full linter output
### Agent files detected (not linted by vally)
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
agents/gem-browser-tester.agent.md
agents/gem-code-simplifier.agent.md
agents/gem-debugger.agent.md
agents/gem-devops.agent.md
agents/gem-documentation-writer.agent.md
agents/gem-implementer.agent.md
agents/gem-mobile-tester.agent.md
agents/gem-orchestrator.agent.md
agents/gem-planner.agent.md
agents/gem-researcher.agent.md
agents/gem-reviewer.agent.md
agents/gem-skill-creator.agent.md

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved review-gate, persistence, routing, and handoff defects can cause unbounded repair loops, repeat completed work on resume, or bypass required checks.

13 open issues
What changed in this PR

Updates Gem Team to v1.148.0, reworking quality gates and delegation contracts for its multi-agent development workflow.

Changes:

  • Adds post-wave and final plan-wide reviews with risk-based review intensity and explicit result routing.
  • Separates tool, execution, and output policies across agents and expands structured output contracts.
  • Introduces the implementer’s SPEC/CODE/GATE/VERIFY loop and synchronizes release metadata.
File Description
plugins/​gem-team/​plugin.json Bumps the plugin version to 1.148.0.
agents/​gem-skill-creator.agent.md Separates skill-creation tool, execution, and output policies.
agents/​gem-reviewer.agent.md Reorganizes target-specific checks and review-intensity rules.
agents/​gem-researcher.agent.md Adds stability and evidence fields to research outputs.
agents/​gem-planner.agent.md Consolidates planning constraints and handoff rules.
agents/​gem-orchestrator.agent.md Adds quality gates, recovery routing, and delegation contracts.
agents/​gem-mobile-tester.agent.md Reorganizes mobile-testing policies and evidence constraints.
agents/​gem-implementer.agent.md Defines the test-first SPEC/CODE/GATE/VERIFY workflow.
agents/​gem-documentation-writer.agent.md Separates documentation policies from workflow instructions.
agents/​gem-devops.agent.md Reorganizes operational and evidence-output policies.
agents/​gem-debugger.agent.md Adds an optional fix-recommendation output field.
agents/​gem-code-simplifier.agent.md Inlines refactoring guidance and adds a complexity-delta field.
agents/​gem-browser-tester.agent.md Reorganizes end-to-end testing and consumer-contract validation policies.
.github/​plugin/​marketplace.json Synchronizes the Gem Team marketplace version to 1.148.0.

Review effort: Max (adaptive)

"status": "completed | failed | needs_revision",
"reason": "string",
"findings": [{ "root_cause": "string", "target_files": ["string"], "fix": "string" }],
"findings": [{ "root_cause": "string", "target_files": ["string"], "fix": "string", "fix_recommendations?": "string" }],

- SPEC: Write or update tests covering acceptance criteria and highest-risk boundaries. Do NOT run the test runner yet.
- CODE: Apply batched, minimal, surgical production edits required to pass. No unrelated refactoring or formatting churn.
- GATE: Run `get_errors` (or `get_problems` / LSP diagnostics) and resolve all reported issues in modified files before proceeding.
- SPEC: Write or update tests covering acceptance criteria and highest-risk boundaries. Do NOT run the test runner yet.
- CODE: Apply batched, minimal, surgical production edits required to pass. No unrelated refactoring or formatting churn.
- GATE: Run `get_errors` (or `get_problems` / LSP diagnostics) and resolve all reported issues in modified files before proceeding.
- VERIFY: Run tests scoped strictly to modified files. Run broader regression suites only if shared interfaces or public contracts changed.
- `research` -> assign `plan_id`, delegate `gem-researcher` -> Phase 4.
- `challenge` -> assign `plan_id`, delegate `gem-reviewer` (`review_mode: critic`) -> Phase 4.
- `continue_plan`/`extend` without exact valid `plan_id` -> block; request it.
- `continue_plan` / `extend`: Require exact valid `plan_id` matching `^[a-z0-9-]+$` and an existing plan. Never infer, fuzzy-match, or auto-load. If missing or invalid -> block; request it.
- Learn: evaluate on failure/retry/blocker; on success, only new failure modes, repeated blockers, or high-confidence facts.
- Wave Scheduling: Execute waves in stable order. Max `orchestrator.max_concurrent_agents` (default: 2) parallel; queue rest; retries count against cap. Cluster tasks back-to-back: sequential within cluster, parallel across (interleaving clusters expires shared prefix).
- Task Delegation: Normalize outputs to receiver handoff via explicit field mappings. Route task outcomes and failures strictly per `<result_routing>`.
- Quality Gates (apply when complexity is `MEDIUM`/`HIGH` or any high-risk signal is present):
Comment on lines +64 to +65
- Post-Wave Gate (barrier before persisting state / next wave): Run `gem-reviewer` in parallel (`review_target: integration` [`review_scope: changed`] + `review_target: code` [`review_scope: changed`]). On fail: `gem-debugger` -> `gem-implementer` (test failures) or owning specialist (review findings); re-run gate until pass.
- Final Plan-Wide Gate (barrier before Phase 4 output): Run `gem-reviewer` in parallel (`review_target: integration` [`review_scope: full`], `review_target: code` [`review_scope: full`], and `review_target: plan` [`review_scope: full`, validating architectural coherence and criteria coverage]). On fail: `gem-debugger` -> `gem-implementer` (code/integration failures) or planner (plan findings); re-run gate until pass.
- `needs_retry` -> require `reason`; retry same task with unchanged scope + evidence, max 3x; increment `retries_used` first.
- `needs_revision` + `clarification_needed` -> ask user; no retry.
- `needs_revision` (no clarification) -> pass `revision_findings` to owning specialist; plan reviews -> `gem-planner`.
- `fixable` / `regression` / `new_failure` / execution `failed` -> `gem-debugger` -> `gem-implementer`.
- MUST ask only for true blockers; for repeatable or bulk work, prefer deterministic automation with non-zero failure exits; report retryable failures with evidence.
- MUST apply YAGNI/KISS: implement the minimum that meets the task; reuse before building; justify every extra layer, agent, task, or wave barrier. NEVER cut validation, error handling, security, or accessibility.
- MUST treat supplied `LOW`/`MEDIUM`/`HIGH` complexity as floor; promote only when plan evidence justifies; never downgrade.
- MUST treat Orchestrator handoff `high_risk_signals` and `critic_signals` as authoritative; do not re-evaluate. Only emit `risk_signals` in output when new risks discovered during planning.
- `code` | `integration` (read target as subject; inspect typed `handoff` before broad reads):
- `code`: check correctness, behavior, contracts, regressions, security, tests, maintainability. If `handoff.debugger_diagnosis` is present, consume as primary evidence: verify `root_cause` aligns with fix, `target_files` match changed files, and `fix_recommendations` are addressed (do not re-diagnose; log discrepancies as `critical_findings`).
- `integration`: check boundary contracts, cross-component behavior, state/migration risks, regressions, end-to-end criteria.
- Shared (`code` + `integration`): validate implementer's `regression_risk` estimate; run over-engineering pass (flag unrequested abstractions, avoidable deps, boilerplate, shorter/correct alternatives as warnings; include leaner alternative only when materially simpler and directly addresses finding).
- MUST treat baseline objective and baseline acceptance criteria as immutable when reviewing a plan. Report any change as a decision blocker.
- MUST run over-engineering pass for `code`/`integration` targets in `critic` mode only: flag unrequested abstractions, avoidable new deps, boilerplate, diffs that could be shorter/more correct, deliberate simplifications. Report as warnings. Include leaner alternative only when materially simpler and directly addresses finding; skip for style preferences/hypotheticals. Skip in `standard`/`high` modes.
- MUST validate fix against `handoff.debugger_diagnosis` when present: verify `root_cause` aligns with fix, `target_files` match changed files, `fix_recommendations` addressed. Do not re-diagnose; only validate fix against diagnosis. Record discrepancies as `critical_findings`.
- MUST verify `complexity_delta` < 0 and no behavior change when `handoff.changed_files` from simplifier present.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent PR touches agents merge-risk:medium plugin PR touches plugins ready-for-review Submission passed intake validation and is ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants